protected override void OnSynced()
    {
        LerpTransform recvTransform = new LerpTransform();

        recvTransform.position = pos;
        recvTransform.rotation = rot;
        recvTransform.timecode = timecode;
        m_transforms.Add(recvTransform);
    }
Esempio n. 2
0
 // Use this for initialization
 void Start()
 {
     targetSlot = GameManager.Instance.gameBoard.GetSlot(command.x, command.y);
     crosshairs.SetColor(crossHairColor, 0.75f);
     transform.position    = new Vector3(0, 100, 0);
     transform.localScale  = new Vector3(15, 15, 15);
     transform.eulerAngles = new Vector3(15, 90, 0);
     lerperTransform       = GetComponent <LerpTransform>();
     lerperTransform.SetTransform(targetSlot.transform, 1f);
 }
Esempio n. 3
0
    // Use this for initialization
    void Start () {
        targetSlot = GameManager.Instance.gameBoard.GetSlot(command.x, command.y);
        crosshairs.SetColor(crossHairColor, 0.75f);
        transform.position = new Vector3(0, 100, 0);
        transform.localScale = new Vector3(15, 15, 15);
        transform.eulerAngles = new Vector3(15, 90, 0);
        lerperTransform = GetComponent<LerpTransform>();
        lerperTransform.SetTransform(targetSlot.transform, 1f);
        
	}
Esempio n. 4
0
 void Awake()
 {
     canvasGroup             = GetComponentInChildren <CanvasGroup>();
     lerpTransform           = GetComponent <LerpTransform>();
     flavorCanvasGroup.alpha = 0;
 }
Esempio n. 5
0
 void Awake()
 {
     lerper = GetComponent<LerpTransform>();
 }
Esempio n. 6
0
 void Awake()
 {
     lerper = GetComponent <LerpTransform>();
 }
Esempio n. 7
0
 void Awake()
 {
     canvasGroup = GetComponentInChildren<CanvasGroup>();
     lerpTransform = GetComponent<LerpTransform>();
     flavorCanvasGroup.alpha = 0;
 }