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

        recvTransform.position = pos;
        recvTransform.rotation = rot;
        recvTransform.timecode = timecode;
        m_transforms.Add(recvTransform);
    }
Beispiel #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);
 }
    // 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);
        
	}
Beispiel #4
0
 void Awake()
 {
     canvasGroup             = GetComponentInChildren <CanvasGroup>();
     lerpTransform           = GetComponent <LerpTransform>();
     flavorCanvasGroup.alpha = 0;
 }
Beispiel #5
0
 void Awake()
 {
     lerper = GetComponent<LerpTransform>();
 }
Beispiel #6
0
 void Awake()
 {
     lerper = GetComponent <LerpTransform>();
 }
Beispiel #7
0
 void Awake()
 {
     canvasGroup = GetComponentInChildren<CanvasGroup>();
     lerpTransform = GetComponent<LerpTransform>();
     flavorCanvasGroup.alpha = 0;
 }