void Awake() { S = this; line = GetComponent <LineRenderer>(); // Get a reference to the LineRenderer line.enabled = false; // Disable the LineRenderer until it's needed points = new List <Vector3>(); // Initialize the points List }
void Awake() { S = this; line = GetComponent <LineRenderer>(); line.enabled = false; points = new List <Vector3>(); }
void Awake() { Instance = this; line.enabled = false; points = new List <Vector3>(); }
private void Awake() { Instance = this; _line = GetComponent <LineRenderer>(); _line.enabled = false; _points = new List <Vector3>(); }
void Awake() { S = this; //Set the singleton line = GetComponent <LineRenderer>(); //Get a reference to the LineRenderer line.enabled = false; //Disable it till needed. points = new List <Vector3>(); //initialize the points list. }
void Awake() { S = this; line = GetComponent<LineRenderer> (); line.enabled = false; points = new List<Vector3>(); }
void Awake() { S = this; line = GetComponent <LineRenderer>(); //miej wyłączony LineRenderer aż do momentu, gdt będzie potrzebny line.enabled = false; points = new List <Vector3>(); }
void Awake() { S = this; line = GetComponent <LineRenderer>(); // Disable the LineRenderer until it's needed line.enabled = false; points = new List <Vector3>(); }
void Awake() { S = this; line = GetComponent <LineRenderer>(); //disable line renderer until it is needed line.enabled = false; //initialize the points list points = new List <Vector3>(); }
// Awake is called when the script instance is being loaded. void Awake() { PrintDebugMsg("Loaded."); S = this; line = GetComponent <LineRenderer>(); line.enabled = false; points = new List <Vector3>(); }
void Awake() { S = this; //sets the singleton - locking in this one copy //get a ref to the linerenderer line = GetComponent <LineRenderer>(); line.enabled = false; //init. the points list points = new List <Vector3>(); }
void Awake() { S = this; // Set the singleton // Get a reference to the LineRenderer line = GetComponent<LineRenderer>(); // Disable the LineRenderer until it's needed line.enabled = false; // Initialize the points List points = new List<Vector3>(); }
// Use this for initialization void Awake() { S = this; //setting singleton //finding reference for LineRenderer line = GetComponent <LineRenderer>(); //disable linerenderer until needed line.enabled = false; //initialise the points list points = new List <Vector3>(); }
void Awake() { S = this; // Установить ссылку на объект-одиночку // Получить ссылку на LineRenderer line = GetComponent <LineRenderer>(); // Выключить LineRenderer, пока он не понадобится line.enabled = false; // Инициализировать список точек points = new List <Vector3>(); }
void Awake() { S = this; //Zdefiniuj singleton //uzyskaj referencje do komponentu LineRenderer line = GetComponent <LineRenderer>(); //Miej wyłączony komponent LineRenderer aż do momentu, gdy będzie potrzebny line.enabled = false; //Zainicjalizuj listę punktów points = new List <Vector3>(); }
void Awake() { S = this; // Set the singleton // Get a reference to the LineRenderer line = GetComponent <LineRenderer>(); // Disable the LineRenderer until it's needed line.enabled = false; // Initialize the points List points = new List <Vector3>(); }
void Awake() { S = this; line = GetComponent <LineRenderer>(); //line = new GameObject().AddComponent<LineRenderer>(); //lines.Add(line); line.enabled = false; points = new List <Vector3>(); //print("AWAKEAWAKEAWAKEAWAKE"); }
void Awake() { S = this; // Встановити посилання на об’єкт-одиночку // Отримати посилання на LineRenderer line = GetComponent <LineRenderer>(); // Вимкнути LineRenderer, доки він не знадобиться line.enabled = false; // Ініціалізувати список точок points = new List <Vector3>(); }
private void Awake() { S = this; // 设置单例对象 // 获取对线渲染器的引用 line = GetComponent <LineRenderer>(); // 在需要使用LineRenderer之前,将其禁用 line.enabled = false; // 初始化三维向量点的List points = new List <Vector3>(); }
void Awake() { S = this; //set the singleton //get a reference to the line renderer line = GetComponent <LineRenderer>(); //disable the line renderer until its needed line.enabled = false; //initialize the points list points = new List <Vector3>(); }
void Awake() { S = this; // Set the singleton // Get a reerence to the LineRenderer line = GetComponent <LineRenderer>(); // Disable the LineRenderer until it is needed line.enabled = false; // Initialize the points List points = new List <Vector3>(); }
private void Awake() { S = this; //get reference to the line renderer line = GetComponent <LineRenderer>(); //disable it until needed line.enabled = false; points = new List <Vector3>(); }
void Awake() { S = this; line = GetComponent<LineRenderer>(); Color c1 = Color.white; Color c2 = Color.red; line.SetColors(c1,c2); pointsCount = 0; line.enabled = false; }
void Awake() { S = this; // Set the singleton instnce // Get a reference to the LineRenderer line = GetComponent<LineRenderer>(); //line.material = new Material(Shader.Find("Mobile/Particles/Additive")); //Color c1 = Color.yellow; //Color c2 = Color.red; //line.SetColors(c1,c2); pointsCount = 0; // Disable until its needed line.enabled = false; }
/************************************************************************************************* *** Start *************************************************************************************************/ void Awake () { S = this; //Get a reference to the LineRenderer line = gameObject.GetComponent<LineRenderer>(); //Disable the LineRenderer until its needed line.enabled = false; //Initialize the points List points = new List<Vector3>(); }//void Start
void Awake() { S = this; // Set the singleton instnce // Get a reference to the LineRenderer line = GetComponent <LineRenderer>(); //line.material = new Material(Shader.Find("Mobile/Particles/Additive")); Color c1 = Color.yellow; Color c2 = Color.red; line.SetColors(c1, c2); pointsCount = 0; // Disable until its needed line.enabled = false; }
void Awake() { // Set the singleton S = this; // Get a reference to the LineRender Line = this.GetComponent <LineRenderer>(); // Disable the LineRenderer until it is needed Line.enabled = false; // Initialize the points list Points = new List <Vector3>(); }
void Awake() { S = this; //// Создаём лайн рендерер //lineGO = new GameObject("Line"); //lineGO.transform.position = new Vector3(0, 0, 0); //// Извлекаем лайн рендерер //lineRenderer = lineGO.GetComponent<LineRenderer>(); //// Добавляем материал //lineRenderer.material = new Material(Shader.Find("_Materials/Mat_ProjectileLine")); //// line //// Добавляем компонент рендера //lineGO.AddComponent<LineRenderer>(); // Извлекаем лайн рендерер line = GetComponent <LineRenderer>(); // Выключаем пока не нужен line.enabled = false; // Создаём список точек points = new List <Vector3>(); // Инициализируем массив lines = new LineRenderer[3]; }
void Awake() { S = this; line = GetComponent<LineRenderer> (); line.enabled = false; points = new List<Vector3>(); sshotGO =GameObject.Find("SlingShot"); }