-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathRCC_ChangableWheels.cs
More file actions
35 lines (25 loc) · 879 Bytes
/
Copy pathRCC_ChangableWheels.cs
File metadata and controls
35 lines (25 loc) · 879 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
//----------------------------------------------
// Realistic Car Controller
//
// Copyright © 2014 - 2017 BoneCracker Games
// http://www.bonecrackergames.com
// Buğra Özdoğanlar
//
//----------------------------------------------
using UnityEngine;
using System.Collections;
/// <summary>
/// Changes wheels (visual only) at runtime. It holds changable wheels as prefab in an array.
/// </summary>
[System.Serializable]
public class RCC_ChangableWheels : ScriptableObject {
#region singleton
private static RCC_ChangableWheels instance;
public static RCC_ChangableWheels Instance{ get{if(instance == null) instance = Resources.Load("RCC Assets/RCC_ChangableWheels") as RCC_ChangableWheels; return instance;}}
#endregion
[System.Serializable]
public class ChangableWheels{
public GameObject wheel;
}
public ChangableWheels[] wheels;
}